<?php
//------------------------
// 商品分类验证器
//-------------------------

namespace app\common\validate;

use think\Validate;

class GoodsCate extends Validate
{
    protected $rule = [
        'parent_id|上级id'       => 'require|number',
        'cate_name|分类名称'     => 'require|max:32|unique:goods_cate',
        'meta_keywords|关键字'   => 'max:256',
        'meta_description|描述'  => 'max:256',
        'seq|排序值'             => 'require|number|max:2',
    ];




}